/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.appointment;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.appointment.Appointment;

/**
 * @author Administrator (email:357375084@qq.com)
 * @since 2013-02-27
 */
public interface AppointmentService {

    /****************************************
     * Insert a instace of Appointment
     ****************************************/
    void insert(Appointment appointment) throws Exception;

    /****************************************
     * Insert instaces of Appointment
     ****************************************/
    void batchInsert(Appointment appointment) throws Exception;

    /****************************************
     * Delete a instace of Appointment
     ****************************************/
    void delete(Appointment appointment) throws Exception;

    /****************************************
     * Delete instaces of Appointment
     ****************************************/
    void batchDelete(Appointment appointment) throws Exception;

    /****************************************
     * Update a instace of Appointment
     ****************************************/
    void update(Appointment appointment) throws Exception;

    /****************************************
     * Query instaces of Appointment
     ****************************************/
    List<BaseModel> queryAsList(Appointment appointment) throws Exception;

    /****************************************
     * Query a instaces of Appointment
     ****************************************/
    BaseModel queryAsObject(Appointment appointment) throws Exception;
}
